import React from 'react'
import {
  View,
} from 'react-native';

import SizeUtils from '../../common/SizeUtils';
import Config from '../../config';
import BaseItem from '../common/BaseItem';
import {ObjUtils} from '../../utils/Utils';
import CommonListPage from '../common/CommonListPage';
import HeartLoveItemView from './HeartLoveItemView';
import HeartLoveSearchAction from '../../actions/heart/HeartLoveSearchAction';



//爱情事搜索结果
export default class HeartLoveSearchResultPage extends CommonListPage {
  constructor(props) {
    super(props);

    this._dataKey = "lover_id";
    // this.state.=
  }

  _getListViewStyle() {
    return {
        width:SizeUtils.getWindowSize().width,
        height:(SizeUtils.getWindowSize().height - Config.paddingTop),
        backgroundColor:"#ffffff00"};
  }

  _onRenderItem(data, index) {
    return <HeartLoveItemView data={data} key={index}/>;
  }

  _requestData(page, listView) {
    let sendData = this.props.pageData.routeData.condition;
    sendData.page = page;
    new HeartLoveSearchAction().call(listView, sendData)
  }
}
